<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Test - provides a simple framework for writing test scripts - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/Test">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="Test.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/Test">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/Test">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/Test">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/Test">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/Test">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/Test">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/Test">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/Test">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/Test">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/Test">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/Test">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/Test">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/Test">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/Test">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/Test">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/Test">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/Test">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/Test">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/Test">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/Test">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/Test">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/Test">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/Test">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/Test">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/Test">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/Test">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/Test">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/Test">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/Test">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/Test">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/Test">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/Test">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/Test">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/Test">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/Test">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/Test">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/Test">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/Test">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/Test">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/Test">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/Test">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/Test">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/Test">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/Test">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/Test">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/Test">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/Test">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/Test">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/Test">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/Test">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/Test">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/Test">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/Test">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/Test">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/Test">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/Test">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/Test">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/Test">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/Test">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/Test">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/Test">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/Test">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/Test">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/Test">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/Test">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/Test">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/Test">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/Test">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/Test">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/Test">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/Test">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/Test">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/Test">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/Test">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/Test">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/Test">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/Test">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/Test">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/Test">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/Test">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="Test.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/Test">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/Test">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/Test">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/Test">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/Test">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/Test">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/Test">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/Test">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/Test">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/Test">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/Test">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/Test">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/Test">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/Test">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/Test">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/Test">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/Test">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/Test">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/Test">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/Test">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/Test">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/Test">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/Test">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/Test">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/Test">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/Test">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/Test">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/Test">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/Test">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/Test">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/Test">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/Test">5.35.1</a>
          <a class="dropdown-item active" href="Test.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="Test.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="Test.html">Test</a>
          <div id="more">
            (<a href="Test.txt">source</a>,
            <a href="https://metacpan.org/pod/Test">CPAN</a>)
          </div>
            <div id="moduleversion">version 1.31</div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="Test.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="Test.html#SYNOPSIS">SYNOPSIS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="Test.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="Test.html#QUICK-START-GUIDE">QUICK START GUIDE</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="Test.html#Functions">Functions</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="Test.html#TEST-TYPES">TEST TYPES</a>
              </li>
              <li>
                <a class="text-decoration-none" href="Test.html#ONFAIL">ONFAIL</a>
              </li>
              <li>
                <a class="text-decoration-none" href="Test.html#BUGS-and-CAVEATS">BUGS and CAVEATS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="Test.html#ENVIRONMENT">ENVIRONMENT</a>
              </li>
              <li>
                <a class="text-decoration-none" href="Test.html#NOTE">NOTE</a>
              </li>
              <li>
                <a class="text-decoration-none" href="Test.html#SEE-ALSO">SEE ALSO</a>
              </li>
              <li>
                <a class="text-decoration-none" href="Test.html#AUTHOR">AUTHOR</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="Test.html#NAME">#</a>NAME</h1>

<p>Test - provides a simple framework for writing test scripts</p>

<h1 id="SYNOPSIS"><a class="permalink" href="Test.html#SYNOPSIS">#</a>SYNOPSIS</h1>

<pre><code>use strict;
use Test;

# use a BEGIN block so we print our plan before MyModule is loaded
BEGIN { plan tests =&gt; 14, todo =&gt; [3,4] }

# load your module...
use MyModule;

# Helpful notes.  All note-lines must start with a &quot;#&quot;.
print &quot;# I&#39;m testing MyModule version $MyModule::VERSION\n&quot;;

ok(0); # failure
ok(1); # success

ok(0); # ok, expected failure (see todo list, above)
ok(1); # surprise success!

ok(0,1);             # failure: &#39;0&#39; ne &#39;1&#39;
ok(&#39;broke&#39;,&#39;fixed&#39;); # failure: &#39;broke&#39; ne &#39;fixed&#39;
ok(&#39;fixed&#39;,&#39;fixed&#39;); # success: &#39;fixed&#39; eq &#39;fixed&#39;
ok(&#39;fixed&#39;,qr/x/);   # success: &#39;fixed&#39; =~ qr/x/

ok(sub { 1+1 }, 2);  # success: &#39;2&#39; eq &#39;2&#39;
ok(sub { 1+1 }, 3);  # failure: &#39;2&#39; ne &#39;3&#39;

my @list = (0,0);
ok @list, 3, &quot;\@list=&quot;.join(&#39;,&#39;,@list);      #extra notes
ok &#39;segmentation fault&#39;, &#39;/(?i)success/&#39;;    #regex match

skip(
  $^O =~ m/MSWin/ ? &quot;Skip if MSWin&quot; : 0,  # whether to skip
  $foo, $bar  # arguments just like for ok(...)
);
skip(
  $^O =~ m/MSWin/ ? 0 : &quot;Skip unless MSWin&quot;,  # whether to skip
  $foo, $bar  # arguments just like for ok(...)
);</code></pre>

<h1 id="DESCRIPTION"><a class="permalink" href="Test.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This module simplifies the task of writing test files for Perl modules, such that their output is in the format that <a href="./Test::Harness.html">Test::Harness</a> expects to see.</p>

<h1 id="QUICK-START-GUIDE"><a class="permalink" href="Test.html#QUICK-START-GUIDE">#</a><a id="QUICK"></a>QUICK START GUIDE</h1>

<p>To write a test for your new (and probably not even done) module, create a new file called <i>t/test.t</i> (in a new <i>t</i> directory). If you have multiple test files, to test the &quot;foo&quot;, &quot;bar&quot;, and &quot;baz&quot; feature sets, then feel free to call your files <i>t/foo.t</i>, <i>t/bar.t</i>, and <i>t/baz.t</i></p>

<h2 id="Functions"><a class="permalink" href="Test.html#Functions">#</a>Functions</h2>

<p>This module defines three public functions, <code>plan(...)</code>, <code>ok(...)</code>, and <code>skip(...)</code>. By default, all three are exported by the <code>use Test;</code> statement.</p>

<dl>

<dt id="plan(...)"><a class="permalink" href="Test.html#plan(...)">#</a><a id="plan"></a><code>plan(...)</code></dt>
<dd>

<pre><code>BEGIN { plan %theplan; }</code></pre>

<p>This should be the first thing you call in your test script. It declares your testing plan, how many there will be, if any of them should be allowed to fail, and so on.</p>

<p>Typical usage is just:</p>

<pre><code>use Test;
BEGIN { plan tests =&gt; 23 }</code></pre>

<p>These are the things that you can put in the parameters to plan:</p>

<dl>

<dt id="tests-=&gt;-number"><a class="permalink" href="Test.html#tests-=%3E-number">#</a><a id="tests"></a><a id="tests-number"></a><code>tests =&gt; <i>number</i></code></dt>
<dd>

<p>The number of tests in your script. This means all ok() and skip() calls.</p>

</dd>
<dt id="todo-=&gt;-[1,5,14]"><a class="permalink" href="Test.html#todo-=%3E-%5B1,5,14%5D">#</a><a id="todo"></a><a id="todo-1-5-14"></a><code>todo =&gt; [<i>1,5,14</i>]</code></dt>
<dd>

<p>A reference to a list of tests which are allowed to fail. See <a href="Test.html#TODO-TESTS">&quot;TODO TESTS&quot;</a>.</p>

</dd>
<dt id="onfail-=&gt;-sub-{-...-}"><a class="permalink" href="Test.html#onfail-=%3E-sub-%7B-...-%7D">#</a><a id="onfail"></a><a id="onfail-sub"></a><code>onfail =&gt; sub { ... }</code></dt>
<dd>

</dd>
<dt id="onfail-=&gt;-\&amp;some_sub"><a class="permalink" href="Test.html#onfail-=%3E-%5C&amp;some_sub">#</a><a id="onfail1"></a><a id="onfail-some_sub"></a><code>onfail =&gt; \&amp;some_sub</code></dt>
<dd>

<p>A subroutine reference to be run at the end of the test script, if any of the tests fail. See <a href="Test.html#ONFAIL">&quot;ONFAIL&quot;</a>.</p>

</dd>
</dl>

<p>You must call <code>plan(...)</code> once and only once. You should call it in a <code>BEGIN {...}</code> block, like so:</p>

<pre><code class="plaintext">BEGIN { plan tests =&gt; 23 }</code></pre>

</dd>
<dt id="ok(...)"><a class="permalink" href="Test.html#ok(...)">#</a><a id="ok"></a><code>ok(...)</code></dt>
<dd>

<pre><code>ok(1 + 1 == 2);
ok($have, $expect);
ok($have, $expect, $diagnostics);</code></pre>

<p>This function is the reason for <code>Test</code>&#39;s existence. It&#39;s the basic function that handles printing &quot;<code>ok</code>&quot; or &quot;<code>not ok</code>&quot;, along with the current test number. (That&#39;s what <code>Test::Harness</code> wants to see.)</p>

<p>In its most basic usage, <code>ok(...)</code> simply takes a single scalar expression. If its value is true, the test passes; if false, the test fails. Examples:</p>

<pre><code># Examples of ok(scalar)

ok( 1 + 1 == 2 );           # ok if 1 + 1 == 2
ok( $foo =~ /bar/ );        # ok if $foo contains &#39;bar&#39;
ok( baz($x + $y) eq &#39;Armondo&#39; );    # ok if baz($x + $y) returns
                                    # &#39;Armondo&#39;
ok( @a == @b );             # ok if @a and @b are the same
                            # length</code></pre>

<p>The expression is evaluated in scalar context. So the following will work:</p>

<pre><code>ok( @stuff );                       # ok if @stuff has any
                                    # elements
ok( !grep !defined $_, @stuff );    # ok if everything in @stuff
                                    # is defined.</code></pre>

<p>A special case is if the expression is a subroutine reference (in either <code>sub {...}</code> syntax or <code>\&amp;foo</code> syntax). In that case, it is executed and its value (true or false) determines if the test passes or fails. For example,</p>

<pre><code>ok( sub {   # See whether sleep works at least passably
  my $start_time = time;
  sleep 5;
  time() - $start_time  &gt;= 4
});</code></pre>

<p>In its two-argument form, <code>ok(<i>arg1</i>, <i>arg2</i>)</code> compares the two scalar values to see if they match. They match if both are undefined, or if <i>arg2</i> is a regex that matches <i>arg1</i>, or if they compare equal with <code>eq</code>.</p>

<pre><code># Example of ok(scalar, scalar)

ok( &quot;this&quot;, &quot;that&quot; );               # not ok, &#39;this&#39; ne &#39;that&#39;
ok( &quot;&quot;, undef );                    # not ok, &quot;&quot; is defined</code></pre>

<p>The second argument is considered a regex if it is either a regex object or a string that looks like a regex. Regex objects are constructed with the qr// operator in recent versions of perl. A string is considered to look like a regex if its first and last characters are &quot;/&quot;, or if the first character is &quot;m&quot; and its second and last characters are both the same non-alphanumeric non-whitespace character. These regexp</p>

<p>Regex examples:</p>

<pre><code>ok( &#39;JaffO&#39;, &#39;/Jaff/&#39; );    # ok, &#39;JaffO&#39; =~ /Jaff/
ok( &#39;JaffO&#39;, &#39;m|Jaff|&#39; );   # ok, &#39;JaffO&#39; =~ m|Jaff|
ok( &#39;JaffO&#39;, qr/Jaff/ );    # ok, &#39;JaffO&#39; =~ qr/Jaff/;
ok( &#39;JaffO&#39;, &#39;/(?i)jaff/ ); # ok, &#39;JaffO&#39; =~ /jaff/i;</code></pre>

<p>If either (or both!) is a subroutine reference, it is run and used as the value for comparing. For example:</p>

<pre><code>ok sub {
    open(OUT, &#39;&gt;&#39;, &#39;x.dat&#39;) || die $!;
    print OUT &quot;\x{e000}&quot;;
    close OUT;
    my $bytecount = -s &#39;x.dat&#39;;
    unlink &#39;x.dat&#39; or warn &quot;Can&#39;t unlink : $!&quot;;
    return $bytecount;
  },
  4
;</code></pre>

<p>The above test passes two values to <code>ok(arg1, arg2)</code> -- the first a coderef, and the second is the number 4. Before <code>ok</code> compares them, it calls the coderef, and uses its return value as the real value of this parameter. Assuming that <code>$bytecount</code> returns 4, <code>ok</code> ends up testing <code>4 eq 4</code>. Since that&#39;s true, this test passes.</p>

<p>Finally, you can append an optional third argument, in <code>ok(<i>arg1</i>,<i>arg2</i>, <i>note</i>)</code>, where <i>note</i> is a string value that will be printed if the test fails. This should be some useful information about the test, pertaining to why it failed, and/or a description of the test. For example:</p>

<pre><code>ok( grep($_ eq &#39;something unique&#39;, @stuff), 1,
    &quot;Something that should be unique isn&#39;t!\n&quot;.
    &#39;@stuff = &#39;.join &#39;, &#39;, @stuff
  );</code></pre>

<p>Unfortunately, a note cannot be used with the single argument style of <code>ok()</code>. That is, if you try <code>ok(<i>arg1</i>, <i>note</i>)</code>, then <code>Test</code> will interpret this as <code>ok(<i>arg1</i>, <i>arg2</i>)</code>, and probably end up testing <code><i>arg1</i> eq <i>arg2</i></code> -- and that&#39;s not what you want!</p>

<p>All of the above special cases can occasionally cause some problems. See <a href="Test.html#BUGS-and-CAVEATS">&quot;BUGS and CAVEATS&quot;</a>.</p>

</dd>
<dt id="skip(skip_if_true,-args...)"><a class="permalink" href="Test.html#skip(skip_if_true,-args...)">#</a><a id="skip"></a><a id="skip-skip_if_true-args"></a><code>skip(<i>skip_if_true</i>, <i>args...</i>)</code></dt>
<dd>

<p>This is used for tests that under some conditions can be skipped. It&#39;s basically equivalent to:</p>

<pre><code>if( $skip_if_true ) {
  ok(1);
} else {
  ok( args... );
}</code></pre>

<p>...except that the <code>ok(1)</code> emits not just &quot;<code>ok <i>testnum</i></code>&quot; but actually &quot;<code>ok <i>testnum</i> # <i>skip_if_true_value</i></code>&quot;.</p>

<p>The arguments after the <i>skip_if_true</i> are what is fed to <code>ok(...)</code> if this test isn&#39;t skipped.</p>

<p>Example usage:</p>

<pre><code>my $if_MSWin =
  $^O =~ m/MSWin/ ? &#39;Skip if under MSWin&#39; : &#39;&#39;;

# A test to be skipped if under MSWin (i.e., run except under
# MSWin)
skip($if_MSWin, thing($foo), thing($bar) );</code></pre>

<p>Or, going the other way:</p>

<pre><code>my $unless_MSWin =
  $^O =~ m/MSWin/ ? &#39;&#39; : &#39;Skip unless under MSWin&#39;;

# A test to be skipped unless under MSWin (i.e., run only under
# MSWin)
skip($unless_MSWin, thing($foo), thing($bar) );</code></pre>

<p>The tricky thing to remember is that the first parameter is true if you want to <i>skip</i> the test, not <i>run</i> it; and it also doubles as a note about why it&#39;s being skipped. So in the first codeblock above, read the code as &quot;skip if MSWin -- (otherwise) test whether <code>thing($foo)</code> is <code>thing($bar)</code>&quot; or for the second case, &quot;skip unless MSWin...&quot;.</p>

<p>Also, when your <i>skip_if_reason</i> string is true, it really should (for backwards compatibility with older Test.pm versions) start with the string &quot;Skip&quot;, as shown in the above examples.</p>

<p>Note that in the above cases, <code>thing($foo)</code> and <code>thing($bar)</code> <i>are</i> evaluated -- but as long as the <code>skip_if_true</code> is true, then we <code>skip(...)</code> just tosses out their value (i.e., not bothering to treat them like values to <code>ok(...)</code>. But if you need to <i>not</i> eval the arguments when skipping the test, use this format:</p>

<pre><code>skip( $unless_MSWin,
  sub {
    # This code returns true if the test passes.
    # (But it doesn&#39;t even get called if the test is skipped.)
    thing($foo) eq thing($bar)
  }
);</code></pre>

<p>or even this, which is basically equivalent:</p>

<pre><code>skip( $unless_MSWin,
  sub { thing($foo) }, sub { thing($bar) }
);</code></pre>

<p>That is, both are like this:</p>

<pre><code>if( $unless_MSWin ) {
  ok(1);  # but it actually appends &quot;# $unless_MSWin&quot;
          #  so that Test::Harness can tell it&#39;s a skip
} else {
  # Not skipping, so actually call and evaluate...
  ok( sub { thing($foo) }, sub { thing($bar) } );
}</code></pre>

</dd>
</dl>

<h1 id="TEST-TYPES"><a class="permalink" href="Test.html#TEST-TYPES">#</a><a id="TEST"></a>TEST TYPES</h1>

<ul>

<li><p>NORMAL TESTS</p>

<p>These tests are expected to succeed. Usually, most or all of your tests are in this category. If a normal test doesn&#39;t succeed, then that means that something is <i>wrong</i>.</p>

</li>
<li><p>SKIPPED TESTS</p>

<p>The <code>skip(...)</code> function is for tests that might or might not be possible to run, depending on the availability of platform-specific features. The first argument should evaluate to true (think &quot;yes, please skip&quot;) if the required feature is <i>not</i> available. After the first argument, <code>skip(...)</code> works exactly the same way as <code>ok(...)</code> does.</p>

</li>
<li><p>TODO TESTS</p>

<p>TODO tests are designed for maintaining an <b>executable TODO list</b>. These tests are <i>expected to fail.</i> If a TODO test does succeed, then the feature in question shouldn&#39;t be on the TODO list, now should it?</p>

<p>Packages should NOT be released with succeeding TODO tests. As soon as a TODO test starts working, it should be promoted to a normal test, and the newly working feature should be documented in the release notes or in the change log.</p>

</li>
</ul>

<h1 id="ONFAIL"><a class="permalink" href="Test.html#ONFAIL">#</a>ONFAIL</h1>

<pre><code class="plaintext">BEGIN { plan test =&gt; 4, onfail =&gt; sub { warn &quot;CALL 911!&quot; } }</code></pre>

<p>Although test failures should be enough, extra diagnostics can be triggered at the end of a test run. <code>onfail</code> is passed an array ref of hash refs that describe each test failure. Each hash will contain at least the following fields: <code>package</code>, <code>repetition</code>, and <code>result</code>. (You shouldn&#39;t rely on any other fields being present.) If the test had an expected value or a diagnostic (or &quot;note&quot;) string, these will also be included.</p>

<p>The <i>optional</i> <code>onfail</code> hook might be used simply to print out the version of your package and/or how to report problems. It might also be used to generate extremely sophisticated diagnostics for a particularly bizarre test failure. However it&#39;s not a panacea. Core dumps or other unrecoverable errors prevent the <code>onfail</code> hook from running. (It is run inside an <code>END</code> block.) Besides, <code>onfail</code> is probably over-kill in most cases. (Your test code should be simpler than the code it is testing, yes?)</p>

<h1 id="BUGS-and-CAVEATS"><a class="permalink" href="Test.html#BUGS-and-CAVEATS">#</a><a id="BUGS"></a>BUGS and CAVEATS</h1>

<ul>

<li><p><code>ok(...)</code>&#39;s special handing of strings which look like they might be regexes can also cause unexpected behavior. An innocent:</p>

<pre><code>ok( $fileglob, &#39;/path/to/some/*stuff/&#39; );</code></pre>

<p>will fail, since Test.pm considers the second argument to be a regex! The best bet is to use the one-argument form:</p>

<pre><code>ok( $fileglob eq &#39;/path/to/some/*stuff/&#39; );</code></pre>

</li>
<li><p><code>ok(...)</code>&#39;s use of string <code>eq</code> can sometimes cause odd problems when comparing numbers, especially if you&#39;re casting a string to a number:</p>

<pre><code>$foo = &quot;1.0&quot;;
ok( $foo, 1 );      # not ok, &quot;1.0&quot; ne 1</code></pre>

<p>Your best bet is to use the single argument form:</p>

<pre><code>ok( $foo == 1 );    # ok &quot;1.0&quot; == 1</code></pre>

</li>
<li><p>As you may have inferred from the above documentation and examples, <code>ok</code>&#39;s prototype is <code>($;$$)</code> (and, incidentally, <code>skip</code>&#39;s is <code>($;$$$)</code>). This means, for example, that you can do <code>ok @foo, @bar</code> to compare the <i>size</i> of the two arrays. But don&#39;t be fooled into thinking that <code>ok @foo, @bar</code> means a comparison of the contents of two arrays -- you&#39;re comparing <i>just</i> the number of elements of each. It&#39;s so easy to make that mistake in reading <code>ok @foo, @bar</code> that you might want to be very explicit about it, and instead write <code>ok scalar(@foo), scalar(@bar)</code>.</p>

</li>
<li><p>This almost definitely doesn&#39;t do what you expect:</p>

<pre><code>ok $thingy-&gt;can(&#39;some_method&#39;);</code></pre>

<p>Why? Because <code>can</code> returns a coderef to mean &quot;yes it can (and the method is this...)&quot;, and then <code>ok</code> sees a coderef and thinks you&#39;re passing a function that you want it to call and consider the truth of the result of! I.e., just like:</p>

<pre><code>ok $thingy-&gt;can(&#39;some_method&#39;)-&gt;();</code></pre>

<p>What you probably want instead is this:</p>

<pre><code>ok $thingy-&gt;can(&#39;some_method&#39;) &amp;&amp; 1;</code></pre>

<p>If the <code>can</code> returns false, then that is passed to <code>ok</code>. If it returns true, then the larger expression <span style="white-space: nowrap;"><code>$thingy-&gt;can(&#39;some_method&#39;) &amp;&amp; 1</code></span> returns 1, which <code>ok</code> sees as a simple signal of success, as you would expect.</p>

</li>
<li><p>The syntax for <code>skip</code> is about the only way it can be, but it&#39;s still quite confusing. Just start with the above examples and you&#39;ll be okay.</p>

<p>Moreover, users may expect this:</p>

<pre><code>skip $unless_mswin, foo($bar), baz($quux);</code></pre>

<p>to not evaluate <code>foo($bar)</code> and <code>baz($quux)</code> when the test is being skipped. But in reality, they <i>are</i> evaluated, but <code>skip</code> just won&#39;t bother comparing them if <code>$unless_mswin</code> is true.</p>

<p>You could do this:</p>

<pre><code>skip $unless_mswin, sub{foo($bar)}, sub{baz($quux)};</code></pre>

<p>But that&#39;s not terribly pretty. You may find it simpler or clearer in the long run to just do things like this:</p>

<pre><code>if( $^O =~ m/MSWin/ ) {
  print &quot;# Yay, we&#39;re under $^O\n&quot;;
  ok foo($bar), baz($quux);
  ok thing($whatever), baz($stuff);
  ok blorp($quux, $whatever);
  ok foo($barzbarz), thang($quux);
} else {
  print &quot;# Feh, we&#39;re under $^O.  Watch me skip some tests...\n&quot;;
  for(1 .. 4) { skip &quot;Skip unless under MSWin&quot; }
}</code></pre>

<p>But be quite sure that <code>ok</code> is called exactly as many times in the first block as <code>skip</code> is called in the second block.</p>

</li>
</ul>

<h1 id="ENVIRONMENT"><a class="permalink" href="Test.html#ENVIRONMENT">#</a>ENVIRONMENT</h1>

<p>If <code>PERL_TEST_DIFF</code> environment variable is set, it will be used as a command for comparing unexpected multiline results. If you have GNU diff installed, you might want to set <code>PERL_TEST_DIFF</code> to <code>diff -u</code>. If you don&#39;t have a suitable program, you might install the <code>Text::Diff</code> module and then set <code>PERL_TEST_DIFF</code> to be <code>perl -MText::Diff -e &#39;print diff(@ARGV)&#39;</code>. If <code>PERL_TEST_DIFF</code> isn&#39;t set but the <code>Algorithm::Diff</code> module is available, then it will be used to show the differences in multiline results.</p>

<h1 id="NOTE"><a class="permalink" href="Test.html#NOTE">#</a>NOTE</h1>

<p>A past developer of this module once said that it was no longer being actively developed. However, rumors of its demise were greatly exaggerated. Feedback and suggestions are quite welcome.</p>

<p>Be aware that the main value of this module is its simplicity. Note that there are already more ambitious modules out there, such as <a href="./Test::More.html">Test::More</a> and <a href="./Test::Unit.html">Test::Unit</a>.</p>

<p>Some earlier versions of this module had docs with some confusing typos in the description of <code>skip(...)</code>.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="Test.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p><a href="./Test::Harness.html">Test::Harness</a></p>

<p><a href="./Test::Simple.html">Test::Simple</a>, <a href="./Test::More.html">Test::More</a>, <a href="./Devel::Cover.html">Devel::Cover</a></p>

<p><a href="./Test::Builder.html">Test::Builder</a> for building your own testing library.</p>

<p><a href="./Test::Unit.html">Test::Unit</a> is an interesting XUnit-style testing library.</p>

<p><a href="./Test::Inline.html">Test::Inline</a> lets you embed tests in code.</p>

<h1 id="AUTHOR"><a class="permalink" href="Test.html#AUTHOR">#</a>AUTHOR</h1>

<p>Copyright (c) 1998-2000 Joshua Nathaniel Pritikin.</p>

<p>Copyright (c) 2001-2002 Michael G. Schwern.</p>

<p>Copyright (c) 2002-2004 Sean M. Burke.</p>

<p>Current maintainer: Jesse Vincent. &lt;jesse@bestpractical.com&gt;</p>

<p>This package is free software and is provided &quot;as is&quot; without express or implied warranty. It may be used, redistributed and/or modified under the same terms as Perl itself.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
